﻿using STF.Blog.Common;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace STF.Blog.WebApp.Areas.ForumManage.Models.UsersInfo
{
    public class UsersInfoAddViewModel
    {
        [Required(ErrorMessage ="{0}不能为空")]
        [Display(Name ="姓名")]
        public string RealName { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "出生日期")]
        public string Birthday { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "性别")]
        public Gender Gender { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "微信账号")]
        public string WeChat { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "手机号")]
        public string Tel { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "家庭住址")]
        public string Address { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "头像")]
        public IFormFile Photo { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "余额")]
        public decimal Amount { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "关联用户")]
        public int UsersId { get; set; }
    }
}
